﻿<Window x:Class="TfsBacklogMgr.Main.ChooseUsers"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
        Icon="pictures\icon.png"
        Title="Choose Users" Height="300" Width="353">
    <Window.Resources>
        <DataTemplate x:Key="UserItemTemplate">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="20" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <CheckBox x:Name="chk1" IsChecked="{Binding Path=IsChosen}" Grid.Column="0" VerticalAlignment="Center" />
                <Image Grid.Column="1" VerticalAlignment="Center" Source="{Binding Image}"  Width="20" Height="20" Stretch="UniformToFill" Margin="2 1" />
                <TextBlock Grid.Column="2" Text="{Binding Path=Name}" VerticalAlignment="Center" />
            </Grid>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <ListBox x:Name="_Users" ItemTemplate="{StaticResource UserItemTemplate}"
            ItemsSource="{Binding Path=AllUsers}" IsSynchronizedWithCurrentItem="True" Margin="0,0,0,72">
        </ListBox>
        <Button Content="Close" Margin="0,0,12,7" Name="button1" IsDefault="True" HorizontalAlignment="Right" Width="75" Height="23" VerticalAlignment="Bottom" IsCancel="True" />
        <Label Content="Max Points/User:" Height="28" HorizontalAlignment="Left" Margin="12,0,0,38" Name="label1" VerticalAlignment="Bottom" />
        <Label Content="Max Hours/User:" Height="28" HorizontalAlignment="Left" Margin="12,0,0,12" Name="label2" VerticalAlignment="Bottom" />
        <extToolkit:IntegerUpDown HorizontalAlignment="Left" Margin="110,0,0,45" Name="integerUpDown1" VerticalAlignment="Bottom" Width="55" Value="{Binding Path=MaxPoints}"/>
        <extToolkit:IntegerUpDown HorizontalAlignment="Left" Margin="110,0,0,19" Name="integerUpDown2" VerticalAlignment="Bottom" Width="55" Value="{Binding Path=MaxHours}"/>
    </Grid>
</Window>
